package org.opens.db.datasource;

import org.opens.db.datasource.druid.DruidDataSourceFactory;

/**
 * 功能描述
 *
 * @author by zhangyuming
 * @date 2023/3/9
 */
public abstract class DataSourceFactory {

    public static DataSourceFactory getInstance() {
        try {
            return new DruidDataSourceFactory();
        } catch (NoClassDefFoundError e) {
            // pass
        }
        throw new RuntimeException("");
    }

    /**
     * 关闭数据源
     */
    public abstract void destroy();

}
